﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using SystemCenterSoa.ApiProject.Area.SystemManager;
using SystemCenterSoa.DtoModel.Common;
using SystemCenterSoa.PoModel.Operation;
using SystemCenterSoa.Service.Operation;

namespace SystemCenterSoa.ApiProject.Area.OperationManger
{
    public class OperationMangerController : SystemManagerBaseController
    {
        private OperationService _operationService;

        public OperationMangerController(OperationService operationServiceService)
        {
            _operationService = operationServiceService;
        }

        [HttpPost]
        public ResultModel<bool> CustomerAdd(Operation_PoModel info)
        {
            try
            {
                var data = _operationService.OperationAdd(info);
                return MyOk(data);
            }
            catch (Exception ex)
            {

                return MyError<bool>(ex);
            }
        }
    }
}
